home *** CD-ROM | disk | FTP | other *** search
- This program finds a knight tour of a chess board by exhaustive search and
- displays the progress of the search graphically. The program is intended
- to be a demonstration of recursive programming.
-
- To run the program from the CLI type:
-
- run ktour N
-
- where N is an integer between 3 and 8, inclusive. N is the number of rows
- and columns on the board. If N is missing or out of range, the default value
- of 8 is used. Of course, the time required to find a solution increases
- rapidly as N is increased.
-
- The program reduces the priority of its task so that more useful tasks
- can get the processor when they want it. If you forget to "run" it,
- you'll end up with your CLI's priority reduced (probably not a good idea).
-
- [Note from the A&J: if a Knight can't solve the board (reach all squares), the
- board is left empty at the end of a run. If the Knight can reach all squares,
- the program stops with the number of each move shown in each square.]
-
- This program may be freely redistributed.
-
- Author:
- Douglas A. Jones
- 181-1000 Oaks Drive
- Atlantic Highlands, NJ 07716
-